package com.dk.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品表，SKU表
 * </p>
 *
 * @author Lebron
 * @since 2021-12-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("dt_recycle_nearby")
@ApiModel(value="DtRecycleNearby对象", description="商品表，SKU表")
public class DtRecycleNearby implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "回收商品id，同时也是商品编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "回收商品标题")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "回收价")
    @TableField("recycle_pirce")
    private BigDecimal recyclePirce;

    @ApiModelProperty(value = "售价")
    @TableField("sell_price")
    private BigDecimal sellPrice;

    @ApiModelProperty(value = "商品卖点")
    @TableField("sell_point")
    private String sellPoint;

    @ApiModelProperty(value = "现存库存")
    @TableField("stock_count")
    private Integer stockCount;

    @ApiModelProperty(value = "库存数量")
    @TableField("num")
    private Integer num;

    @ApiModelProperty(value = "商品条形码")
    @TableField("barcode")
    private String barcode;

    @ApiModelProperty(value = "商品图片")
    @TableField("image")
    private String image;

    @ApiModelProperty(value = "所属类目，叶子类目")
    @TableField("category_id")
    private Long categoryId;

    @ApiModelProperty(value = "商品状态，1-回收并上架，2-下架，3-删除")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否默认")
    @TableField("is_default")
    private String isDefault;

    @ApiModelProperty(value = "SPU的id")
    @TableField("goods_id")
    private Long goodsId;

    @ApiModelProperty(value = "放心卖用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "缩略图")
    @TableField("cart_thumbnail")
    private String cartThumbnail;

    @ApiModelProperty(value = "类目")
    @TableField("category")
    private String category;

    @ApiModelProperty(value = "品牌")
    @TableField("brand")
    private String brand;

    @ApiModelProperty(value = "规格")
    @TableField("spec")
    private String spec;

    @ApiModelProperty(value = "标签id")
    @TableField("label_id")
    private Integer labelId;


}
